GBML manual / Constants

BTN_B

The GBA’s B button, for btn_held/btn_pressed/btn_released.

Syntax

BTN_B: constant

Description

Names the GBA's B button, for passing to btn_held, btn_pressed or btn_released - the secondary face button - the other of A/B from whichever one is configured as fire.

Example

if (btn_pressed(BTN_B)) {
    var fired = true;
}

Checks for a fresh press of B this frame.

See also: btn_heldbtn_pressedbtn_released